﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date,,>
-- Description:	<Description,,>
-- =============================================
CREATE PROCEDURE [dbo].[proc_AB_Interface_Delete2]
(
	@id INT
)
AS
DECLARE @Count_1 INT
BEGIN

	SELECT @Count_1=COUNT(*) FROM AB_list WHERE Iid=@id
	IF @Count_1=0
	BEGIN
		DELETE FROM AB_Interface WHERE id=@id
	END
	ELSE
		BEGIN
			SELECT -1
		END

	SET NOCOUNT ON;
END